package com.mysteel.order.feign;

import com.mysteel.order.vo.SpuInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * ProjectName: mail
 * ClassName: ProductFeignService
 * Description:
 * date: 2021/03/24/024 9:53
 *
 * @author xiaochao
 */
@FeignClient("product")
public interface ProductFeignService {
    @ResponseBody
    @GetMapping("/product/spuinfo/skuId/{id}")
    SpuInfoVo getSpuInfoBySkuId(@PathVariable("id") Long skuId);
}
